package BookTest;

public class B3StudentGrades {
    private int studentID;
    private String name;
    private double chineseGrades;
    private double mathGrades;
    private double englishGrades;

    public B3StudentGrades() {}
    public B3StudentGrades(int studentID, String name, double chineseGrades, double mathGrades, double englishGrades) {
        this.studentID = studentID;
        this.name = name;
        this.chineseGrades = chineseGrades;
        this.mathGrades = mathGrades;
        this.englishGrades = englishGrades;
    }


    public void setStudentID(int studentID) {
        this.studentID = studentID;
    }
    public int getStudentID() {
        return studentID;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getName() {
        return name;
    }
    public void setChineseGrades(double chineseGrades) {
        this.chineseGrades = chineseGrades;
    }
    public double getChineseGrades() {
        return chineseGrades;
    }
    public void setMathGrades(double mathGrades) {
        this.mathGrades = mathGrades;
    }
    public double getMathGrades() {
        return mathGrades;
    }
    public void setEnglishGrades(double englishGrades) {
        this.englishGrades = englishGrades;
    }
    public double getEnglishGrades() {
        return englishGrades;
    }

    public double averageScore(){
        double average = (this.chineseGrades+this.mathGrades+this.englishGrades)/3;
        return average;
    }




}
